package com.mao.service.impl.product;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mao.dao.product.ProductClassDao;
import com.mao.model.product.ProductClass;
import com.mao.service.product.IProductClassService;

@Service("productClassService")
public class ProductClassServiceImpl implements IProductClassService {
	private ProductClassDao productClassDao;

	
	public List<ProductClass> getAllProductClass(){
		return productClassDao.getAllProductClass();
	}
	
	public List<ProductClass> getAllProductClass(Long storeid) {
		return productClassDao.getAllProductClass(storeid);
	}

	public ProductClass saveProductClass(ProductClass pc) {
		return productClassDao.saveProductClass(pc);
	}

	public ProductClass updateProductClass(ProductClass pc) {
		return productClassDao.updateProductClass(pc);
	}

	public ProductClass getProductClassById(long id) {
		return productClassDao.getProductClassById(id);
	}

	public String valDelProClass(long id) {
		return productClassDao.valDelProClass(id);
	}

	@Autowired
	public void setProductClassDao(ProductClassDao productClassDao) {
		this.productClassDao = productClassDao;
	}

	public ProductClassDao getProductClassDao() {
		return productClassDao;
	}

}
